from gxl_ai_utils.utils import utils_file

if __name__ == '__main__':
    file_path1 = '/home/work_nfs7/xlgeng/code_runner_gxl/asr_data_process/20456811_text.scp'
    file_path2 = '/home/work_nfs7/xlgeng/code_runner_gxl/asr_data_process/34841436_text.scp'
    output_path = '/home/backup_nfs5/data_tts/wenetspeech/text_process'
    dic_1 = utils_file.load_dic_from_scp(file_path1)
    print(len(dic_1))
    dic_2 = utils_file.load_dic_from_scp(file_path2)
    print(len(dic_2))
    dic_1.update(dic_2)
    print(len(dic_1))
    print(len(dic_1)+len(dic_2))
    utils_file.write_dic_to_scp(dic_1, output_path)
